<?php
global $references;
$references = array(

	"attribute.commerce.category" => array(
		"class" => "Pageley_Domain_Attribute_Reference",
		"constructor" => array(
			"name" => "category"
		),
		"properties" => array(
            "type" => "#{type.commerce.Category}"
		)
	),

	"attribute.commerce.supplier" => array(
		"class" => "Pageley_Domain_Attribute_Reference",
		"constructor" => array(
			"name" => "supplier",
			"type" => "#{type.commerce.Supplier}",
			"validators" => array(
				"#{validator.required}"
			)
		)
	),

	"attribute.commerce.customer" => array(
		"class" => "Pageley_Domain_Attribute_Reference",
		"constructor" => array(
			"name" => "customer",
			"type" => "#{type.commerce.Customer}",
			"validators" => array(
				"#{validator.required}"
			)
		)
	),

    "attribute.commerce.customerStatus" => array(
        "class" => "Pageley_Domain_Attribute_Enumeration",
        "constructor" => array(
            "name" => "customerStatus",
            "className" => "Pageley_Commerce_Domain_CustomerStatus"
        )
    ),

	"attribute.commerce.article" => array(
		"class" => "Pageley_Domain_Attribute_Reference",
		"constructor" => array(
	       	"name" => "article",
	       	"type" => null,
            "validators" => array(
                "#{validator.required}"
            )
        ),
        "properties" => array(
			"type" => "#{type.commerce.Article}"
		)
	),

	"attribute.commerce.order" => array(
		"class" => "Pageley_Domain_Attribute_Reference",
		"constructor" => array(
			"name" => "order"
		),
		"properties" => array(
            "type" => "#{type.commerce.Order}"
		)
	),

    "attribute.commerce.orderStatus" => array(
        "class" => "Pageley_Domain_Attribute_Enumeration",
        "constructor" => array(
            "name" => "orderStatus",
            "className" => "Pageley_Commerce_Domain_OrderStatus"
        )
    ),

    "attribute.commerce.paymentMethod" => array(
        "class" => "Pageley_Domain_Attribute_Enumeration",
        "constructor" => array(
            "name" => "paymentMethod",
            "className" => "Pageley_Commerce_Domain_PaymentMethod"
        )
    ),

	"attribute.commerce.orderItem" => array(
		"class" => "Pageley_Domain_Attribute_Reference",
		"constructor" => array(
			"name" => "orderItem"
		),
		"properties" => array(
            "type" => "#{type.commerce.OrderItem}"
		)
	)

);